package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ClassName: Notification
 * Description:
 *
 * @author L_Z_R
 * @version 1.0
 * @create 2025/06/16 19:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Notification {
    private Integer notificationId;  //通知id
    private Integer receiverId;   //用户id
    private String title;   //标题
    private String content;   //内容
    private Byte type;  //类型
    private Boolean isRead;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime; //创建时间
}
